import request from '@/utils/request'

// 查询应急物资列表
export function listSysEmergencyInfo(query) {
    return request({
        url: '/emergency/sysEmergencyInfo/list',
        method: 'get',
        params: query
    })
}

// 查询应急物资详细
export function getSysEmergencyInfo(id) {
    return request({
        url: '/emergency/sysEmergencyInfo/' + id,
        method: 'get'
    })
}

// 新增应急物资
export function addSysEmergencyInfo(data) {
    return request({
        url: '/emergency/sysEmergencyInfo',
        method: 'post',
        data: data
    })
}

// 修改应急物资
export function updateSysEmergencyInfo(data) {
    return request({
        url: '/emergency/sysEmergencyInfo',
        method: 'put',
        data: data
    })
}

// 删除应急物资
export function delSysEmergencyInfo(id) {
    return request({
        url: '/emergency/sysEmergencyInfo/' + id,
        method: 'delete'
    })
}
